
local cmdname = "aids_goto"

if CLIENT then

	AIDS.RegisterCommand( "Go to player", cmdname, "goto" ) 

else
	
	local function TeleportPlayer( ply, cmd, args )
	
		local target = AIDS.GetPlayer( args[1] )
		
		if target then
		
			ply:SetPos( target:GetPos() + Vector(0,0,80) )
			
			AIDS.ChatPrint( { ply, " teleported to ", target, "." } )
		
		end
	
	end
	
	AIDS.AddCommand( TeleportPlayer, cmdname )
	
end